package cn.lizemin.demo.parent;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class Son extends Parent {
    //这是一个main方法,是程序的入口
    public static void main(String[] args) {
        Son son = new Son();
//        son.eat();
        test(son);

    }
    @Override
    public final void eat() {
        super.eat();
//        super.jump();
        Parent.jump();
        System.out.println("do you eat?");
        System.out.println(Math.abs(23));

    }



    private static void test(Parent parent){
        parent.eat();

        System.out.println("I don't eat,thank you!");

    }

    public void test(int num,String name){
        System.out.println("num......name");
        super.eat();
        System.out.println(super.age);

    }
    private static int test(String name){
        System.out.println("num......name");
        return 19;


    }




}
